﻿//        Another Demo from Andy L. & MissedMemo.com
// Borrow whatever code seems useful - just don't try to hold
// me responsible for any ill effects. My demos sometimes use
// licensed images which CANNOT legally be copied and reused.


namespace MissedMemo.MeatAndCheeseDisc.OrderEntry.OrderProcessing
{
    // EXTEND local service data proxy with Client-specific features...
    public partial class Customer
    {
        public Customer()
        {
            Name = "( walk-in customer )";
            Address = new Address();
        }


        internal Customer Clone()
        {
            // Perform a shallow copy of all value fields...
            Customer copy = (Customer)MemberwiseClone();

            // Then, make deep copies of any reference fields...
            Address = Address.Clone();

            return copy;
        }
    }
}
